In This Topic
Create a new recursive web content from a collection of
DicomObjects.DicomDataSet objects.
Syntax
'Declaration
Public Function New( _
ByVal As DicomDataSetCollection, _
ByVal As ContentType, _
ByVal As System.String, _
ByVal As System.Boolean, _
ByVal As System.Func(Of SequencePath,Uri) _
)
'Usage
Dim DataSets As DicomDataSetCollection
Dim Content As ContentType
Dim TransferSyntax As System.String
Dim MakeBulkData As System.Boolean
Dim GetBulkDataUri As System.Func(Of SequencePath,Uri)
Dim instance As New WebContent(DataSets, Content, TransferSyntax, MakeBulkData, GetBulkDataUri)
public WebContent(
DicomDataSetCollection ,
ContentType ,
System.string ,
System.bool ,
System.Func<SequencePath,Uri>
)
public WebContent(
: DicomDataSetCollection;
: ContentType;
: System.String;
: System.Boolean;
: System.Func
);
public function WebContent(
: DicomDataSetCollection,
: ContentType,
: System.String,
: System.boolean,
: System.Func
);
public: WebContent(
DicomDataSetCollection* ,
ContentType* ,
System.string* ,
System.bool ,
System.Func<SequencePath*,Uri*>*
)
public:
WebContent(
DicomDataSetCollection^ ,
ContentType^ ,
System.String^ ,
System.bool ,
System.Func<SequencePath^,Uri^>^
)
Parameters
- DataSets
- The data from which to create the web content
- Content
- The Content type to create. In many cases the main type will be "multipart/related" and sub-type will be "application/dicom", "application/dicom+xml" and "application/json"
- TransferSyntax
- The transfer syntax to use to encode the DICOM data
- MakeBulkData
- Cotrols whether to pull large data attributes into separate parts
- GetBulkDataUri
-
A delegate to generate a URI for each items of bulk data,
when passed the path to the attribute, or which returns null if the data is not to be replaced
Example
public static Uri ReplaceBulkDataByExternalUri(SequencePath path)
{
if (path.TargetAttribute.RawData != null && path.TargetAttribute.RawData.Length > BulkDataThreshold
|| path.TargetAttribute.KeywordCode == Keyword.PixelData)
return new Uri(BaseUri + path.Format("/bulkdata/{1}/{2}/{3}", "/{0:X8}/{1}", "/{0:X8}"));
return null;
}
Requirements
Target Platforms: .NET CLR 4.8 or higher
See Also